using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Maticsoft.Web.Admin.Copinions
{
    public partial class Show : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    int id = int.Parse(Request.Params["id"]);
                    Navigation011.Para_Str = "id=" + id;
                    ShowInfo(id);
                }
            }
        }

        private void ShowInfo(int id)
        {
            Maticsoft.BLL.Opinions.C_Opinion bll = new Maticsoft.BLL.Opinions.C_Opinion();
            Maticsoft.Model.Opinions.C_Opinion model = bll.GetModel(id);
            this.lblid.Text = model.id.ToString();
            this.lblsubject.Text = model.subject;
            this.lblcontent.Text = model.content;
            this.lbluser.Text = model.user;
            this.lbladdress.Text = model.address;
            this.lblzip.Text = model.zip;
            this.lbltel.Text = model.tel;
            this.lblhttp.Text = model.http;
            this.lblmail.Text = model.mail;
            if(model.isuse.Equals("true"))
            {
                this.chkisuse.Checked=true; 
            }
        }
    }
}
